Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Error while evaluating expression: &#xFEFF View modes: 
User avatar
Member
Member
vcarter - 8/2/2013 3:50:26 PM
   
Error while evaluating expression: &#xFEFF
I am using {%&#xFEFF%} in a hierarchical transformation as a separator(since there can't be blank transformations), this worked when it was initially suggested on the dev net, but now I am seeing the Error in the event logs.

Menus display properly but I am concerned about the error nonetheless.

Any thoughts?

8/2/2013 8:44:18 PM MacroResolver RESOLVEDATAMACR

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/2/2013 6:00:03 PM
   
RE:Error while evaluating expression: &#xFEFF
Are you encoding the output? Can't you simply use
 
for a blank space?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/2/2013 6:00:36 PM
   
RE:Error while evaluating expression: &#xFEFF
Of course it would do that. It should have read & n b s p ;

User avatar
Member
Member
vcarter - 8/5/2013 7:49:31 AM
   
RE:Error while evaluating expression: &#xFEFF
That was what was suggested initially but it created a bunch of extra space in my menus. I am really just curious as to why this error did not show up initially. When something like that happens it leads me to believe that the error I am seeing is not the real problem.

I am going to replace it with & n b s p and see if I am still getting an error. That way I can start ruling things out. Thanks for your feedback.

User avatar
Member
Member
vcarter - 8/5/2013 8:44:28 AM
   
RE:Error while evaluating expression: &#xFEFF
Update: I opted for my initial thought and used & shy ; It does not display and seems to be acceptable in the macro. I am still open to suggestions for a better way to do this however.

BTW this link details the original problem and the suggested solution. While the suggested solution does not cause a break in the site
<%&#xFEFF%>

It does seem to cause problems when used in the form {%&#xFEFF%} in a text/XML transformation type. I got another error when attempting to use is as above in a ASCX transformation.

Please note I am not ruling out a lack of understanding on my part as the reason this was not functioning but for now the problem is solved using an alternative character.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 8/8/2013 9:38:04 AM
   
RE:Error while evaluating expression: &#xFEFF
Hi,

I was thinking about some expression that will always return empty string, but that's unnecessary load (to process the condition/expression).
Also, what about the SPAN tag, as Martin suggested (together with others) in the another linked forum thread?

Regards,
Zdenek