Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 10 months ago.
Improve this question
I am trying to add a Filter Query so that the 'Get Files' action is only returning files which have a field eq to 'Processed', AND a modified date which is older than 2 days. Here is my current Filter Query:
Process_x0020_Status eq 'Processed' and Modified le #{addDays(utcNow(),-2)}
And this is the error I receive:
Error
Action 'Get_files_(properties_only)' failed
Error Details
The expression "Process_x0020_Status eq 'Processed' and Modified le 2021-12-06T10:35:35.5292965Z" is not valid. Creating query failed.
Is anyone able to assist please?
Turns out, all I had to do was place single quotes around modified expression:
Process_x0020_Status eq 'Processed' and Modified le '#{addDays(utcNow(),-2)}'
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I have a nested list and I want to pull out the first element of every list of lists:
t = [
[['a',1],['b',2],['c',3]],
[['d',1],['e',2],['f',3]],
[['g',1],['h',2],['i',3]]
]
want = ['a','d','g']
I am getting the Comphrension wrong:
list = [x[0][0] for x in t]
It will work as long as you don't call your variable 'list' (call it 'new_t' or whatever) - list is a reserved word in python.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 4 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I have 2 code submissions on codeforces -
https://codeforces.com/contest/762/submission/29695191
& https://codeforces.com/contest/762/submission/29695201
both have the exact same code except for the usage of $ vs. () . One with the $ exceeded the time limit on the 6th test and the other passed all the tests.
Any suggestions on why that might be the case?
They're exactly the same. There's just some variance in runtime - your passing test case is within 5% of failing on time as well.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I am struggling with an excel formula with multiple IF AND conditions. maybe you can help me. Here is an explanation of what I want to achieve:
List different prices if TWO conditions are met.
If A1=Ferrari AND B1=red, price=500; IF A1=Ferrari AND B1=gold, price=550; IF A1=Toyota AND B1=red, price=100, IF A1=Toyota and color=gold, price=110, else leave cell blankĀ“
I hope you understand what I want to achieve and can help me.
This is what I tried but it gives me an error. I am using google sheets by the way.
=IF(AND(I27="ferrari"; K27="red")Variables!$R$1;IF(AND(I27="ferrari"; K27="gold")Variables!$R$2;IF(AND(I27="toyota"; K27="red")Variables!$V$3;IF(AND(I27="toyota"; K27="gold")Variables!$V$4;""))))
I think you've got your semi colons and commas mixed up! Try this...
=IF(AND(I27="ferrari",K27="red"),Variables!$R$1,IF(AND(I27="ferrari",K27="gold"),Variables!$R$2,IF(AND(I27="toyota",K27="red"),Variables!$V$3,IF(AND(I27="toyota",K27="gold"),Variables!$V$4,""))))
You were also missing commas after some of your closing parentheses.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I have this line of code:
browser=webdriver.Chrome()
...
games1=[]
for x in browser.find_elements_by_xpath("//li[starts-with(#class,'icon_flag')]"):
if x.text!="":
games1.append(x.get_attribute('class'))
Then i am trying to make selenium click the elements i found :
for x in games1:
browser.find_element_by_xpath("//li[#class=x]").click()
How is it possible to get error message:
Message: no such element: Unable to locate element:
It really weird since i found the elements from the site!
You need to pass x as a variable. Right now you are passing the literal "x" value
for x in games1:
browser.find_element_by_xpath("//li[#class="+x+"]").click()
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I'm pasting in the formula:
=RANDBETWEEN(DATE(2014, 1, 1),DATE(2015, 1, 1))
which is mentioned in several tutorials but getting the Excel "error with function message". I'm in Ireland which is a different format but either way it doesn't work.
Anything else I have to do to generate random dates?
Try :
=RANDBETWEEN(41640,42005)
And format as date.
For some countries:
=RANDBETWEEN(41640;42005)
And format as date.
And if the 2nd works maybe just:
=RANDBETWEEN(DATE(2014; 1; 1);DATE(2015; 1; 1))