cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

#Error getting last refresh variable for few users

Ramesh19
Discoverer
0 Likes
648

Hi 

in Webi report we are faccing #error greeting last refreshing variable for Few user's (UK). same report working my side and few users (US). i have checked in  universe side no any level of data security. if remove the ToDate is working (UK user's).  so help on this .

Last refresh date  logic below :

* [TRC Plan] is data provider name only

=ToDate((If LastExecutionDate([TRC Plan])=RelativeDate(LastDayOfMonth(CurrentDate());-1;MonthPeriod )
Or LastExecutionDate([TRC Plan])=RelativeDate(LastDayOfMonth(CurrentDate());0;MonthPeriod )
Then RelativeDate(LastExecutionDate([TRC Plan]);1;DayPeriod )
Else LastExecutionDate([TRC Plan]));"M/d/yy")

inside logic i extract individual 

Ramesh19_0-1756880497078.png

 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

bekart
Participant
0 Likes

Hi Ramesh, we have been facing with same issue almost 2 years ago, had a call with SAP and they tried to convict me thats logical and working as expected...

 

Create the variable similar to mine:

=If GetPreferredViewingLocale() = "pl_PL" 
Then Replace([cost];" ";"")
ElseIf GetPreferredViewingLocale() = "en_US" 
Then Replace(Replace(Replace([cost];" ";"");",";"");".";",")

But in your case you have to force SAP BO to read correct Date Format. Diffrent for en_US and diffrent for en_UK.

Hope that will help! 

ayman_salem
Active Contributor
0 Likes

Why are you using ToDate() ?
The result is already a date, so there's no need to convert it again.

Instead, use FormatDate to display the output in the desired format (M/d/yy).

...

hope it helps