Let me preface this that I am not a developer and I don't normally work in SSRS.
I am receiving Textbox16.Paragraphs[0].TextRuns[0] contains an error:
[BC30034] Bracketed identifier is missing closing ']'.
The expression in Textbox16 is
=IIF(ReportItems!Pallets.Value=0,[Sum(NumUnits)]*ReportItems!FloorLocations.Value,[Sum(NumUnits)]*ReportItems!Pallets.Value)
I tried just =[Sum(NumUnits)]*ReportItems!FloorLocations.Value and get the same error.
What am I missing?
I actually tried something different and used the ReportItem name that corresponds to [Sum(NumUnits)]. No more error.
SSRS is expecting an identifier name between the [ and ], not an expression. Instead of [Sum(NumUnits)] you should use Sum([NumUnits]), putting only the identifier name in the brackets and then summing that.
Alternatively, if NumUnits is a field, just reference it from the Fields collection:
Sum(Fields!NumUnits.Value)
Related
I have a variable with a value of '1617'. It is a DT_WSTR datatype currently. Sometimes I need a string, others an integer.
I am using a derived column to replace the ' values so that I can cast this value as an integer.
My replace function is not working.
REPLACE([User::schoolYear],"'","")
What am I doing wrong?
The problem with your supplied expression, is that you are not referencing the variable schoolYear. Sometimes, you can address a variable as #schoolYear but the consistent, explicit syntax I would encourage is #[User::schoolYear] That way, you can identify the namespace in case someone like me has used a custom namespace.
Your Derived Column expression then becomes
REPLACE(#[User::schoolYear],"'","")
You are having space before and after the single quote, which is causing the replace to fail.
Modify the expression as given below. I have tested it. It is working fine.
REPLACE([User::schoolYear],"'","")
I keep getting a syntax error using Microsoft Access. I believe I am putting in the iif statement incorrectly. I am even using the expression builder. However, it keeps saying that there may be a misplaced comma
Please help
Respectfully,
In Design View instead of , use ; in the IIF() function:
IIf([LastName]="Smith";1;0)
If you see the query in SQL View though, you will see the function with commas.This is a case applying to regions where the comma could be a decimal separator (check your regional settings of your PC).
The error is not due to the use of the comma in place of a semi-colon, but rather because you have set the Table row to Orders within the query grid:
As such, the query is attempting to access a field called [iif([LastName]="Smith",1,0)] from the table Orders, and this is an invalid field name.
Since you are using a calculated field which isn't being sourced directly from any particular table, clear Orders from the table row for this field to fix the error.
is there any way, to use a period (.) in the field name of Access?
For example if I have foo.bar as string. Access will give me the following error message:
This is not a valid name. Make sure it is a valid parameter or alias name,
that it does not include invalid characters or punctuation, and that the name
is not too long. (Error 3125)
I tried escaping it in many ways, like:
[foo.bar]
*foo.bar*
'foo.bar'
foo[.]bar
foo*.*bar
foo'.'bar
foo\.bar
Nothing seems correct, nothing seems to work. I need to put a period in the field name, I can't replace it with some different character. Is there any way to fix my problem?
Short answer is No.
You will have to live with that limitation.
My field names were measurements in millimeters, so I needed field names like 1.1, 1.2, etc. I used 1,1 as the field name and 1.1 as the caption and it worked fine.
When i view the Linq to SQL value i found thos
[t0].[] AS [Stamp]
this should be
[t0].[Stamp] AS [Stamp]
My Question is why this could happen?
The error i get because of this is:
An object or column name is missing or empty. For SELECT INTO
statements, verify each column has a name. For other statements, look
for empty alias names. Aliases defined as "" or [] are not allowed.
Change the alias to a valid name.
Just in case someone go through this. It all started when i added a column manually to the dbml file.
I missed one property.
I looked again to the Stamp field in dbml and found that i missed to fill the Source Property.
Thanks
I'm writing a test case in robot framework. I'm getting the response in below json string:
{"responseTimeStamp":"1970-01-01T05:30:00",
"statusCode":"200",
"statusMsg":"200",
"_object":{"id":"TS82",
"name":"newgroup",
"desc":"ttesteste",
"parentGroups":[],
"childGroups":[],
"devices":null,
"mos":null,
"groupConfigRules" {
"version":null,
"ruleContents":null
},
"applications":null,"type":0
}
}
From that I want to take "_object" using:
${reqresstr} = ${response['_object']}
... but am getting the error "No keyword with name '=' found" error
If I try the following:
${reqresstr}= ${response['_object']}
... I'm getting the error "Keyword name cannot be empty." I tried removing the '=' but still get the same error.
How can I extract '_object' from that json string?
When using the "=" for variable assignment with the space-separated format, you must make sure you have no more than a single space before the "=". Your first example shows that you've got more than one space on either side of the "=". You must have only a single space before the = and two or more after, or robot will think the spaces are a separator between a keyword and argument.
For the "keyword must not be empty" error, the first cell after a variable name must be a keyword. Unlike traditional programming languages, you cannot directly assign a string to a variable.
To set a variable to a string you need to use the Set Variable keyword (or one of the variations such as Set Test Variable). For example:
${reqresstr}= Set variable ${response['_object']}
${reqresstr}= '${response["_object"]}'
wrap it inside quotes and two spaces after =
There is a syntax error in your command. Make sure there is a space between ${reqresstr} and =.
Using your example above:
${reqresstr} = ${response['_object']}