SQLTimestamp - Extension error

idonav
Member Posts: 31
field(50000;"Timestamp";BigInteger) { SQLTimestamp = true; }
Causes the following error:
"The request for path /nav/dev/apps?SchemaUpdateMode=synchronize failed with code InternalServerError. Reason: Specifying default value for timestamp column"
Any suggestions on how to solve this?
0
Answers
-
Hi, Timestamp is reserved name, use "My Timestamp" etc...0
-
@NoOneLt Timestamp is no longer reserved name, as long as you set the SQLTimestamp to true. It gets mapped to existing, normally hidded timestamp field on the table.Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
@Slawek_Guzek It changed in AL only?0
-
Same error occurs regardless of what you name it, unfortunately. Any other suggestions?0
-
Hi again, use "schemaUpdateMode": "Recreate" in app.json tried, it works.0
-
Still receiving the error, regardless if changing schemaUpdateMode.
"The request for path /nav/dev/apps?SchemaUpdateMode=recreate failed with code InternalServerError. Reason: Specifying default value for timestamp column"
(+ I'd rather avoid using the recreate option)
Then it must be something else. Can't really come up with what. Did you try it in a docker setup @NoOneLt ?0 -
Yes iam on docker bcsandbox image. You could try to update your docker image, remove old image before and update container. I had it 5 weeks old and "Recreate" worked.
Yesterday i updated image/container and iam able to have this table even with "Syncronize"
table 50100 MyTable
{
DataClassification = ToBeClassified;
fields
{
field(1;MyField; Integer)
{
DataClassification = ToBeClassified;
}
field(2;MyTimestamp; BigInteger)
{
SqlTimestamp = true;
}
}0 -
Still same issue, running a table extension, anyone feel like trying creating a table extension containing an sql timestamp? Preferable table 36.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions