AL icon indicating copy to clipboard operation
AL copied to clipboard

SqlTimestamp property doesn't work

Open richardrobberse opened this issue 8 years ago • 4 comments

The SqlTimestamp property doesn't work, it doesn't matter if it's implemented in a table extension or a new table, the value remains 0.

Expected behavior: When using the SqlTimestamp in a table extension I expect it won't only increase in case of a modification on a field in my table extension, but also when a field in the actual table gets modified.

I would like to know if this property is or will be supported for extension development and how it should behave.

richardrobberse avatar Jan 12 '18 08:01 richardrobberse

According to a support engineer at Microsoft it is reproduced and an RFH is filed to the development team. Incident numer is 118011217453551

richardrobberse avatar Jan 12 '18 09:01 richardrobberse

No progress until now? Have a similar problem:

Adding a BigInteger Field with property SqlTimestamp = true; returns error on publish

Code:

tableextension 70700 ItemLedgerEntryWithRowVersion extends "Item Ledger Entry"
{
    fields
    {
        field(70700; RowVersion; BigInteger)
        {
            SqlTimestamp = true;
        }
    }
}

Debug console on synchronize: [2018-03-20 16:42:00.30] The request for path /DYNAMICSNAV110/dev/apps?SchemaUpdateMode=synchronize failed with code InternalServerError. Reason: Specifying default value for timestamp column

Duplicate or other issue?

rtslbrnft avatar Mar 20 '18 15:03 rtslbrnft

Looks another issue in the synchronize context.

kalberes avatar Mar 20 '18 18:03 kalberes

The use of SqlTimestamp property is not allowed in table extensions and has been blocked in the compiler.

StanislawStempin avatar May 25 '18 14:05 StanislawStempin