小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

Dynamics 365中計算字段與Now進行計算實體導(dǎo)入報錯:You can't use Now(), which is of type DateTime, with the current function.

 小仙女本仙人 2020-08-28

微軟動態(tài)CRM專家羅勇 ,回復(fù)338或者20190521可方便獲取本文,同時可以在第一間得到我發(fā)布的最新博文信息,follow me.

計算字段是從Dynamics CRM 2015 SP1版本開始推出的一個好東西,詳情可以參考官方文檔 Define calculated fields to automate manual calculations ,我以前的博文也有介紹。

我發(fā)現(xiàn),我定義了如下的計算字段 (calculated field):

 

定義的計算公示如下:

 

 

后來我發(fā)現(xiàn)這個實體在使用Ribbon Workbench定義按鈕后,發(fā)布包括這個字段定義的實體時候會報錯,導(dǎo)出來以后,導(dǎo)入到別的環(huán)境也會報錯(Error while importing Calculated fields name new_dayssinceinvoice)。

報錯信息是:You can't use Now(), which is of type DateTime, with the current function.

根據(jù)官方的提示:All DIFF functions require that the first Date and Time field and the second Date and Time field have the same behavior: User Local, Date Only or Time-Zone Independent. If the behavior of the second field doesn’t match the behavior of the first field, the error message is shown, indicating that the second field can’t be used in the current function. More information: Behavior and format of the Date and Time field. 

我才應(yīng)該是Now的行為(behavior) 是 User Local的,而我定義的計算公示中涉及到的另一個字段是 Time-Zone Independent導(dǎo)致的。于是我將涉及到的那個字段的Behavior改成 User Local后問題解決。當(dāng)然拉,不能在界面上直接改成User Local,需要刪除該字段后重建。

 

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多