AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 07.08.2018, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: Change Field Type in Dynamics 365 for Finance and Operations
Источник: https://stoneridgesoftware.com/chang...nd-operations/
==============

We’ve all been there.  Sometime after completing a feature, you decide that a field on a table would really work better if it were of a different type.

For example, you created a string field and now wish you had used a RecId.

On your development machine, the fix is simple; you delete the column and re-add it using the new data type.

It isn’t until your co-workers sync this change from version control that the problem becomes evident.  As they synchronize their databases, they will see errors stating that the field type cannot be changed.

Back in the Dynamic AX 2012 days, you could simply drop the table or the field, synchronize the database and you were up and running again.  To change field type in Dynamics 365 for Finance and Operations, this doesn’t work; you must also remove references to it from the SqlDictionary table.

If you find yourself in this situation, and you are NOT in your production environment, follow these steps:

1. Drop the table containing the re-typed column.

DROP TABLE [dbo].[LEVGRADEFACTORCATEGORIES]2. Delete all references from SqlDictionary.

DELETEFROM SQLDICTIONARYWHERE TABLEID IN ( SELECT TABLEID FROM SQLDICTIONARY WHERE NAME = 'LEVGRADEFACTORCATEGORIES' AND FIELDID = 0)Restart IIS.

Run the synchronization command.



Источник: https://stoneridgesoftware.com/chang...nd-operations/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
stoneridgesoftware: Using ‘Organize Project by Element Type’ for New Solutions in Dynamics 365 for Operations Development Blog bot DAX Blogs 0 20.07.2017 08:11
stoneridgesoftware: Identifying Roles for Security in Dynamics 365 for Operations Blog bot DAX Blogs 0 19.05.2017 19:11
jaestevan: Microsoft Dynamics 365 for Operations Blog bot DAX Blogs 0 02.11.2016 01:11
Platform updates overview - 3.70.B - NAV2009 R2 Blog bot Dynamics CRM: Blogs 0 07.02.2011 22:06
wiki.dynamicsbook: Changes Made in Navision Attain 3.60 Blog bot Dynamics CRM: Blogs 0 02.09.2008 13:23
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 09:58.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.