日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

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

 小仙女本仙人 2020-08-28

微軟動態(tài)CRM專家羅勇 ,回復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ā)布包括這個字段定義的實體時候會報錯,導出來以后,導入到別的環(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導致的。于是我將涉及到的那個字段的Behavior改成 User Local后問題解決。當然拉,不能在界面上直接改成User Local,需要刪除該字段后重建。

 

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

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多