[[main_page|NovoMotion Outbound Menu]] ====== Suggested Processing Steps ====== \\ ====Recommended steps to follow when a file is added to the NovoMotion Outbound process:==== - Create a new schema using either [[novo_motion_novo_gen.schema|NovoMotion NOVO.GEN.SCHEMA ]] or [[novo_motion_schema_editor|NovoMotion Schema Editor]]. - In the [[novo_motion_schema_editor|NovoMotion Schema Editor]], establish the connection information on the SQL Options tab and activate the schema. - In the [[novo_motion_schema_editor|NovoMotion Schema Editor]], use the SQL script creation ([[Creating a SQL Script]]) process to generate a SQL script to copy and execute in the SQL database. - If the ODBC datasource is new, create it by either adding a data source through the Administrative Tools (Windows) or ding the data source to the odbc.ini record (Unix). - Use the [[load_bci.action|LOAD.BCI.ACTION]] process to test a load from the U2 server to the SQL server. - Correct dictionaries, connections, or schema records as needed. - Once there are no identified issues, use NOVO.E.T ([[novo_motion_trigger_generator|NovoMotion Trigger Generator]]) to enable an UPDATE (and usually a DELETE) trigger on the U2 file. - Use the [[load_bci.action|LOAD.BCI.ACTION]] process to load all the records from the U2 environment to the SQL server. - Check the SQL server to verify results. \\ ====Troubleshooting==== ^ Error Message ^ Analysis Steps ^ | No BCI.ACTION record created | Verify the trigger is on using LIST.TRIGGER. If the trigger exists, try logging off and back on. If the file is the TM, make sure the table number has been added on the NovoMotion Interface Control Trigger Controls tab. | | No Schema exists for filename | Verify the schema is flagged as Active in the [[novo_motion_schema_editor|NovoMotion Schema Editor]]| | Connection does not exist | Verify the correct login and password are entered in the SQL Options tab of the [[novo_motion_schema_editor|NovoMotion Schema Editor]]. If they are, verify the datasource is set up. If it is, verify the login has permission to the database on the SQL server. | | Invalid Object Name error | Verify the database name on the SQL options tab of the [[novo_motion_schema_editor|NovoMotion Schema Editor]] is fully qualified i.e dbo.filename | ====Suggested Ways to Add a Column to a Schema That Already Exists==== * In SQL, execute a new query against the main database: ALTER TABLE dbo.TABLENAME ADD New_field varchar(20) This step can also be done by right-clicking on the SQL table and using Design. * In the [[novo_motion_schema_editor|NovoMotion Schema Editor]], add the new column with the exact same name – (New_field in previous step). * Save the schema and generate the code, Uncheck ‘Generate Primary Table’. * On UNIX copy to clipboard, paste into SQL, verify the first thing is [Use…_TRIGGER], and execute on SQL. * On Windows click the "Execute on SQL Server" button. *Verify there are no records in BCI.QUARANTINE that were created between the alter table and schema editor change steps. *[[load_bci.action|LOAD.BCI.ACTION]] for any records that need the new column. \\ [[main_page|NovoMotion Outbound Menu]]