by CM & Sugar

Need to set up a numbering system to track your records? Define and add a unique identifier field to any SuiteCRM record. Option rich so that you can define the alphanumeric format that you need. Start tracking your Quote, Cases, Accounts and any other module today.

Includes a 30 day guarantee
Try it Now

#1142 - cannot save new sequence says it cannot write to suitecrm.sequences

Closed Bug? created by pspillman Verified Purchase 6 years ago

cannot save new sequence says it cannot write to suitecrm.sequences works in our test box but does not work in our live box

  1. pspillman member avatar

    pspillman Verified Purchase

    6 years ago

    I have tried to uninstall and reinstall and that does not work either

  2. cm_sugar member avatar

    CM & Sugar Provider Affiliate

    6 years ago

    Is it a database error? Do you have file permission issues? Please check the setting and permissions. If it works at test, it should work live as well

  3. pspillman member avatar

    pspillman Verified Purchase

    6 years ago

    here are the errors i am getting

    Tue May 8 11:24:13 2018 [8684][1][FATAL] error with select of stored informations for build the DRAW Query Failed: SELECT code_prefix, code_suffix, code_seperator, sequence_add_date, sequence_date_format, zero_padding, next_num, first_num, sequence_ordering FROM sequences WHERE id = '': MySQL error 1146: Table 'suitecrm.sequences' doesn't exist Tue May 8 11:30:59 2018 [8459][ae0bb33e-e38d-229f-c1dc-5ab40c5a0d6c][FATAL] SugarBean::populateDefaultValues $field_defs should be an array Tue May 8 11:43:08 2018 [10821][ae0bb33e-e38d-229f-c1dc-5ab40c5a0d6c][FATAL] Exception handling in /var/www/html/suitecrm/include/MVC/Controller/SugarController.php:402 Tue May 8 11:43:08 2018 [10821][ae0bb33e-e38d-229f-c1dc-5ab40c5a0d6c][FATAL] Exception in Controller: Unauthorized access to administration. Tue May 8 11:43:08 2018 [10821][ae0bb33e-e38d-229f-c1dc-5ab40c5a0d6c][FATAL] backtrace:

    0 /var/www/html/suitecrm/modules/Administration/index.php(57): sugar_die('Unauthorized ac...')

    1 /var/www/html/suitecrm/include/MVC/View/SugarView.php(840): include_once('/var/www/html/s...')

    2 /var/www/html/suitecrm/include/MVC/View/views/view.classic.php(74): SugarView->includeClassicFile('modules/Adminis...')

    3 /var/www/html/suitecrm/include/MVC/View/SugarView.php(207): ViewClassic->display()

    4 /var/www/html/suitecrm/include/MVC/Controller/SugarController.php(432): SugarView->process()

    5 /var/www/html/suitecrm/include/MVC/Controller/SugarController.php(375): SugarController->processView()

    6 /var/www/html/suitecrm/include/MVC/SugarApplication.php(109): SugarController->execute()

    7 /var/www/html/suitecrm/index.php(52): SugarApplication->execute()

    8

  4. cm_sugar member avatar

    CM & Sugar Provider Affiliate

    6 years ago

    Ok, can you go to Admin-Repair-Repair Databases (should be the first link). Check, if there is an output (I would guess so) and execute it. Please copy the output and write me here as a comment. Somehow the module does not trigger ant your live system the install routines by SugarCRM. Guess it has to do with missing permissions. If you still fail, but you get an output at the repair section, then there is an error within your server configuration and writing permissions to your database.

  5. pspillman member avatar

    pspillman Verified Purchase

    6 years ago

    Clearing Vardefs from cache...done Clearing language files from cache...done Clearing Template files from cache...done Clearing JS files from cache...done Clearing Vardefs from cache...done Clearing JS Language files from cache...done Clearing language files from cache...done Clearing SuiteCRM Dashlet files from cache...done Clearing SuiteCRM Feed Cache...done Clearing Smarty templates from cache...done Clearing Theme Cache...done Clearing XML files from cache...done Clearing Unified Search Cache...done Clearing External API Cache File...done Rebuilding Extensions... Rebuilding Include... Rebuilding Language...en_us Rebuilding ActionViewMap... Rebuilding ActionFileMap... Rebuilding ActionReMap... Rebuilding Administration... Rebuilding EntryPointRegistry... Rebuilding Extensions... Rebuilding FileAccessControlMap... Rebuilding Layoutdefs... Rebuilding GlobalLinks... Rebuilding LogicHooks... Rebuilding Menus... Rebuilding Include... Rebuilding ScheduledTasks... Rebuilding UserPage... Rebuilding Utils... Rebuilding Vardefs... Rebuilding JSGroupings... Rebuilding Actions... Rebuilding DC Actions... Rebuilding RelationshipsRebuilding TableDictionary... Updating the admin warning message... Rebuilding Audit Tables... ACLAction not Audit Enabled... ACLRole not Audit Enabled... Relationship not Audit Enabled... Audit table for Leads already exists. skipping... Audit table for Cases already exists. skipping... Audit table for Bugs already exists. skipping... User not Audit Enabled... CampaignLog not Audit Enabled... Project not Audit Enabled... Audit table for ProjectTasks already exists. skipping... Audit table for Campaigns already exists. skipping... ProspectList not Audit Enabled... Prospect not Audit Enabled... EmailMarketing not Audit Enabled... CampaignTracker not Audit Enabled... Release not Audit Enabled... EmailMan not Audit Enabled... Scheduler not Audit Enabled... SchedulersJob not Audit Enabled... Audit table for Contacts already exists. skipping... Audit table for Accounts already exists. skipping... Audit table for Opportunitys already exists. skipping... EmailTemplate not Audit Enabled... Note not Audit Enabled... Call not Audit Enabled... Email not Audit Enabled... Meeting not Audit Enabled... Task not Audit Enabled... User not Audit Enabled... Employee not Audit Enabled... Currency not Audit Enabled... Tracker not Audit Enabled... ImportMap not Audit Enabled... UsersLastImport not Audit Enabled... Administration not Audit Enabled... UpgradeHistory not Audit Enabled... vCal not Audit Enabled... Alert not Audit Enabled... Role not Audit Enabled... Document not Audit Enabled... DocumentRevision not Audit Enabled... FieldsMetaData not Audit Enabled... InboundEmail not Audit Enabled... SavedSearch not Audit Enabled... UserPreference not Audit Enabled... MergeRecord not Audit Enabled... Audit table for EmailAddresss already exists. skipping... EmailText not Audit Enabled... Spots not Audit Enabled... AOBH_BusinessHours not Audit Enabled... SugarFeed not Audit Enabled... EAPM not Audit Enabled... OAuthKey not Audit Enabled... OAuthToken not Audit Enabled... Audit table for AM_ProjectTemplatess already exists. skipping... Audit table for AM_TaskTemplatess already exists. skipping... Favorites not Audit Enabled... Audit table for AOK_Knowledge_Base_Categoriess already exists. skipping... Audit table for AOK_KnowledgeBases already exists. skipping... Reminder not Audit Enabled... Reminder_Invitee not Audit Enabled... Audit table for FP_eventss already exists. skipping... Audit table for FP_Event_Locationss already exists. skipping... Audit table for AOD_IndexEvents already exists. skipping... Audit table for AOD_Indexs already exists. skipping... Audit table for AOP_Case_Eventss already exists. skipping... Audit table for AOP_Case_Updatess already exists. skipping... Audit table for AOR_Reports already exists. skipping... AOR_Field not Audit Enabled... AOR_Chart not Audit Enabled... AOR_Condition not Audit Enabled... AOR_Scheduled_Reports not Audit Enabled... Audit table for AOS_Contractss already exists. skipping... Audit table for AOS_Invoicess already exists. skipping... Audit table for AOS_PDF_Templatess already exists. skipping... Audit table for AOS_Product_Categoriess already exists. skipping... Audit table for AOS_Productss already exists. skipping... Audit table for AOS_Products_Quotess already exists. skipping... Audit table for AOS_Line_Item_Groupss already exists. skipping... Audit table for AOS_Quotess already exists. skipping... AOW_Action not Audit Enabled... Audit table for AOW_WorkFlows already exists. skipping... AOW_Processed not Audit Enabled... AOW_Condition not Audit Enabled... Audit table for jjwg_Mapss already exists. skipping... Audit table for jjwg_Markerss already exists. skipping... Audit table for jjwg_Areass already exists. skipping... Audit table for jjwg_Address_Caches already exists. skipping... Audit table for Calls_Reschedules already exists. skipping... Audit table for SecurityGroups already exists. skipping... Audit table for OutboundEmailAccountss already exists. skipping... TemplateSectionLine not Audit Enabled... OAuth2Tokens not Audit Enabled... OAuth2Clients not Audit Enabled... Audit table for SurveyResponsess already exists. skipping... Audit table for Surveyss already exists. skipping... Audit table for SurveyQuestionResponsess already exists. skipping... Audit table for SurveyQuestionss already exists. skipping... Audit table for SurveyQuestionOptionss already exists. skipping... Audit table for CIRCU_Circuitss already exists. skipping... Audit table for Sequencess already exists. skipping... Done Database tables are synced with vardefs

  6. cm_sugar member avatar

    CM & Sugar Provider Affiliate

    6 years ago

    Well you can try this one manually on your local database instance. I guess, the installation routine does not work well for any unknown reason on your live system. Usually the permissions for your web server user does not fulfill the requirements of SugarCRMor database user

    CHECK, IF YOU NEED TO BACKUP ANY PREVIOUS TABLES OF SEQUENCES BEFORE

    DROP TABLE IF EXISTS sequences; CREATE TABLE sequences ( id char(36) NOT NULL, name varchar(255) DEFAULT NULL, date_entered datetime DEFAULT NULL, date_modified datetime DEFAULT NULL, modified_user_id char(36) DEFAULT NULL, created_by char(36) DEFAULT NULL, description text, deleted tinyint(1) DEFAULT '0', assigned_user_id char(36) DEFAULT NULL, code_prefix varchar(255) DEFAULT NULL, code_suffix varchar(255) DEFAULT NULL, code_seperator char(1) DEFAULT NULL, code_field varchar(255) DEFAULT NULL, sequence_add_date tinyint(1) DEFAULT NULL, sequence_readonly tinyint(1) DEFAULT NULL, sequence_date_format varchar(255) DEFAULT NULL, zero_padding int(11) DEFAULT NULL, type int(11) DEFAULT NULL, first_num int(11) DEFAULT NULL, next_num int(11) DEFAULT NULL, parent_type varchar(255) DEFAULT NULL, sequence_ordering varchar(255) DEFAULT NULL, PRIMARY KEY (id), KEY idx1 (assigned_user_id), KEY idx2 (modified_user_id), KEY idx3 (created_by) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

    DROP TABLE IF EXISTS sequences_audit; CREATE TABLE sequences_audit ( id char(36) NOT NULL, parent_id char(36) NOT NULL, date_created datetime DEFAULT NULL, created_by varchar(36) DEFAULT NULL, field_name varchar(100) DEFAULT NULL, data_type varchar(100) DEFAULT NULL, before_value_string varchar(255) DEFAULT NULL, after_value_string varchar(255) DEFAULT NULL, before_value_text text, after_value_text text, PRIMARY KEY (id), KEY idx_sequences_parent_id (parent_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

  7. pspillman member avatar

    pspillman Verified Purchase

    6 years ago

    still having the same issues how do i tell if there is a permission issue to writing the database

  8. pspillman member avatar

    pspillman Verified Purchase

    6 years ago

    I have uninstalled and reinstalled this nothing is working anymore ideas

  9. cm_sugar member avatar

    CM & Sugar Provider Affiliate

    6 years ago

    You will have to consider with your administrstor. I cant check permission issue remote. Since it works on your test, it must have to do with the server setup. I am back at office on monday

  10. pspillman member avatar

    pspillman Verified Purchase

    6 years ago

    I am the admin I just got it working but i do have one more issue I but the first sequence number in and it randomly choose its own number is there a way to change that with out removing the sequence and starting from sequences

    • cm_sugar member avatar

      CM & Sugar Provider Affiliate

      6 years ago

      You need to check, if the aimed column / field does not keep any conflicting existing values. There is no random generator, just max search, if the column is in the same manner

  11. pspillman member avatar

    pspillman Verified Purchase

    6 years ago

    *from scratch

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...