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 - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;0 -
@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
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
