Hi There,
NAV2013R2.
I have a few Items in my database where there are hidden characters stored in their codes.
When I am opening the Item Card i am getting an error message like this:
The record that you tried to open is not available. The page will close or show the next record.
Do you know how to rename such an Item? Or is there any way to get rid of this (ENTER) empty character from the Code?
Thank You in advance.
0
Answers
I believe the item was created outside NAV (by SQL directly) because in RTC you can't have hidden characters
So, I just tried what you described (i.e. create an item with TAB in its code) ==> I can open its card + I renamed it without any problem.
Maybe the issue is that your Item No is lowercase?
Thanks for the answer.
These Items have been created in NAV 5.0 by copy paste from Excel.
And I think I made a mistake, this is hidden character is not a TAB it is more like ENTER.
Then i made a conversion from 5.0 -> 2009 -> 2013 -> 2013R2.
It is not possible to recreate such an Item in the RTC client, and probably because of that it is also not possible to rename/delete.
Try to create another item with the same code, and rename it instead. If it does not work you may be forced to rename Item in SQL - but it will be tricky
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Where:
This Code: will always give an error.
It seems like it is possible only via SQL.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
I would try RecRef.GETTABLE as it is not a read operation ?
@elnowako When you say:
You tried it or you're guessing?
P.S: just trying to help
The problem here is probably the assignment, stripping the non-printable characters. as the value is assignet to CODE type field, and the internal validations kicks in. Just like in case typing in a CODE field a value startting or ending with a space.
It is easty to check with the following: If not this then it must be the GET stripping the white characters along the way
The code with FINDFIRST avoids both.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
I have seen this problem before, and fixing it in Navision is quite complex and slow. It is pretty simple (though tedious) to fix directly in SQL and a few orders of magnitude faster if you have a lot of items.