I want to create a pdf document with navision. When I start the report normally (not over NAS) everthing works, but when I start the report over the NAS It doesnt work.
I receive this message:
Overflow under type conversion of Text to Code.
run the NAS with parameter debug=1. After the error, debugger shows you where is the problem. Somewhere you are assigning Text value to Code variable and the source value is longer than max. length of the Code variable... (assigning through :=, Validate or passing it as parameter to some function). It can be problem of working with windows accounts, when the SID is not recognized and instead userID is the SID passed (commonly the application has all USERID field of type CODE 20, but the sid is TEXT and the length is more than 20 characters). Please, look into Windows logins, if there are some SID not translated to login names...
Thanks a lot for your help. I found the problem. The table user has a field with the name userid Code20. The table printerselection has the same field normally with type Code10. I used a login name for the nas how was longer than 10 characters. That was the problem.
Comments
But I never heared about too Fast Navision...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
All my customers are complaining about it ...
... just kidding ...
:oops:
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
ok back to my problem! I need an Event when Navision printed the report!
Is there a solution available?
Best Regards
Iwan
In Codeunit: Dunno. you can't run a report "modal", so I think not possible... .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I want to create a pdf document with navision. When I start the report normally (not over NAS) everthing works, but when I start the report over the NAS It doesnt work.
I receive this message:
Overflow under type conversion of Text to Code.
I have no idea what the problem is!
Thanks for your help
Iwan
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks a lot for your help. I found the problem. The table user has a field with the name userid Code20. The table printerselection has the same field normally with type Code10. I used a login name for the nas how was longer than 10 characters. That was the problem.
Best regards,
Iwan