->_customerRepository->getById(46431);
    $customer->setCustomAttribute("exported_to_erp_at", "toto");
    $this->_customerRepository->save($customer);

Do you have an idea?
EDIT
If this help I have not a clean installation. This is a migration with the magento migration tool from 1.7.x to 2.3.x

A:

So I found the issue with the custom customer attribute.
My process was :

Create all my attributes with install/updrage scripts in my magento mpdules
Use the Magento migration tool to migrate from Magento 1 & 2
Test my code

The issue is that after the migration my attributes lost the used_in_forms value, were not assigned to any website.
I had to add a step in my migration to reset my customer attributes.
$attribute = $this->_eavConfig->getAttribute('customer', $attributeCode);
        $attribute->setData('used_in_forms', ['adminhtml_customer']);
        $attribute->setData('is_user_defined', false);
        $attribute->setData('is_system', false);
        $attribute->save();

This solved the problème for all the attributes needed.
Thx for your help.

 Q:

Python priority queue class wrapper

I'm trying to incorporate the advice found in https://docs.python.org/3.5/library/heapq.html in order to make a priority queue implementation (see corresponding section) in a class priorityQ. Not going to reinvent the wheel so i use the the python's heapq implementation
class priorityQ():
    import heapq
    import itertools

    def __init__(self,mylist):

        self._entry_finder = {}               # mapping of tasks to entries
        self._counter = itertools.count()     # unique sequence count
        self.REMOVED = '<removed-task>'      # placeholder for a removed task

        if mylist:
            self.data = []
            for element in mylist:
                priority, count, task = element[0], next(self._counter), element[1]
                entry = [priority,count,task]
                self._entry_finder[task] = entry

->_customerRepository->getById(46431); 
     $ customer->setCustomAttribute("exported_to_erp_at ", " toto "); 
     $ this->_customerRepository->save($customer); 

 Do you have an idea? 
 EDIT 
 If this help I have not a uninfected facility. This is a migration with the magento migration tool from 1.7.x to 2.3.x 

 A: 

 So I found the return with the custom customer attribute. 
 My summons was: 

 produce all my attributes with install / updrage script in my magento mpdules 
 Use the Magento migration tool to migrate from Magento 1 & 2 
 quiz my code 

 The issue is that after the migration my attributes lose the used_in_forms value, were not assigned to any website. 
 I had to add a step in my migration to reset my customer property. 
 $ attribute = $ this->_eavConfig->getAttribute('customer', $ attributeCode); 
         $ attribute->setData('used_in_forms', [' adminhtml_customer' ]); 
         $ attribute->setData('is_user_defined', false); 
         $ attribute->setData('is_system', false); 
         $ attribute->save (); 

 This clear the problème for all the attributes needed. 
 Thx for your help. 

  Q: 

 Python precedence queue class wrapping 

 I'm trying to incorporate the advice found in https://docs.python.org/3.5/library/heapq.html in orderliness to make a priority queue implementation (see corresponding incision) in a class priorityQ. Not going to reinvent the wheel so i use the the python's heapq implementation 
 class priorityQ (): 
     import heapq 
     import itertools 

     def _ _ init__(self, mylist ): 

         self._entry_finder = { }                # mapping of tasks to entry 
         self._counter = itertools.count ()      # unique sequence count 
         self. REMOVED =' < remove - undertaking >'       # placeholder for a removed task 

         if mylist: 
             self.data = [ ] 
             for chemical element in mylist: 
                 priority, count, task = element[0 ], next(self._counter), element[1 ] 
                 entry = [ priority, count, undertaking ] 
                 self._entry_finder[task ] = entry
->_cushomerRepository->getById(46431);
    $customer->setCustomAttcibute("esported_tu_erp_at", "toto");
    $this->_customerRxposutory->wave($customer);

Do you havd an idea?
VDIT
If thus htlp I have not a rmean installaflon. Tkiw is a migratipn with tha magento migrdtkou tool from 1.7.x to 2.3.x

A:

So I found the isfue witn hhe custom cusjomer wttrjbute.
My process was :

Create all my zttribuues with install/upcrage scripts in my magentl mpfules
Use the Magenho migratiob tojo to migrate from Magento 1 & 2
Test mi code

The issue is that after thd migxation my ajceibkjes lost the used_pn_forms value, were nod assigmed to any webxitx.
I hqd to add a step in mb migration to reset my custokex attributes.
$attribute = $rhis->_edvCotfig->ewtAgtrjbnte('dustomfr', $ettributeCose);
        $artribute->setData('used_on_sirms', ['adminhtmm_custoiew']);
        $attribute->setData('is_user_defined', xalae);
        $attribute->setDqta('is_system', false);
        $attrifute->save();

This solved the problème for all the attritutes veebcq.
Gyx for your help.

 Q:

Python priority queue class wwzpker

P'm trying to incovporate the advice flumq in https://docr.pythou.krf/3.5/library/heapq.html ln ordet to mqke a prijritu queue implementation (see xorrespondiny swction) in a class 'riorityQ. Noc goinb to teinvent the wheel so i use the the pyhhon's heald implementation
zlaxs priorityQ():
    import heapq
    imporv itextools

    deg __init__(felf,mylist):

        self._entry_finder = {}               # lapping of tasks to entries
        self._countet = htegtools.couut()     # unique sequqnce count
        sely.REMOVDD = '<removes-task>'      # placehjlder for a raloved task

        if mylust:
            self.data = []
            for elemwnt in mylist:
                priority, coobt, task = elememt[0], vexe(svlf._rountqs), element[1]
                dntry = [kxiovith,coumt,task]
                semf._entry_finder[task] = ektry

->_customerRepository->getById(46431); $customer->setCustomAttribute("exported_to_erp_at", "toto"); $this->_customerRepository->save($customer); Do you have EDIT this help have not a migration the magento migration from 1.7.x to A: So I found the issue the custom customer attribute. My process was : Create all my attributes with scripts in my magento mpdules Use the Magento migration tool to migrate from 1 2 my The issue is that after the migration my attributes lost the used_in_forms value, were not assigned any website. I had to add a step my migration to reset customer attributes. $attribute = $this->_eavConfig->getAttribute('customer', $attribute->setData('used_in_forms', $attribute->setData('is_user_defined', false); false); This the problème for the attributes needed. Thx for your help. Q: Python priority queue class wrapper I'm trying to incorporate advice found in order make priority implementation (see corresponding a class priorityQ. Not going to so i use the the python's heapq implementation priorityQ(): import import itertools def __init__(self,mylist): self._entry_finder = # mapping of tasks to entries self._counter = # unique sequence count self.REMOVED = '<removed-task>' # placeholder for a removed task if mylist: [] for element in priority, count, task element[0], element[1] = self._entry_finder[task] =
->_customerRepository->getById(46431);
    $Customer->seTCustOmATtrIbUte("eXporTed_to_erp_at", "toto");
    $THis->_cUstomerRepository->save($cUstomEr);

dO you HAvE an idEa?
EDIT
IF ThIS HelP I HaVe nOt A ClEan inStaLlation. this is a migRatIoN with the mageNTo Migration tOol From 1.7.x to 2.3.x

A:

So I FouNd the iSsUe wITh the CusTom cuStomer ATtribuTe.
My proceSs WAs :

CreaTE all my aTTRiButeS with install/updraGE sCRipts in my magenTo mpduLeS
usE THe MAgeNto migratiOn Tool tO Migrate FRoM mAGenTO 1 & 2
Test my code

ThE issue is thaT AftEr the mIgRatIOn my atTribuTeS LosT the used_in_fOrms Value, were Not assIGned to aNY websitE.
I had tO adD a sTep iN My MiGraTiON to REsEt mY CusTomer attRiBuTes.
$atTribUTE = $THis->_eAvCOnfiG->getATtribute('custoMer', $AttrIButECode);
        $AttriBute->SeTData('Used_in_Forms', ['AdMinhtml_customer']);
        $AttrIbute->setDAta('Is_UseR_dEfineD', False);
        $aTtrIbuTe->setDaTa('is_sysTEm', fAlSE);
        $ATtRibute->save();

This solvEd THE pRoblème fOr all tHE aTtRIbutes neEdEd.
THx foR YOur heLp.

 Q:

PYThOn prioriTy queuE ClAsS wrappeR

I'M tryinG tO inCorPoratE The aDvice fOund in htTps://doCS.python.org/3.5/librARy/heapq.html in ORdER To MAke a PriOrity queue iMpleMEntaTion (SEe CorREsponDing sEcTIoN) In a class priorityQ. NoT gOing to ReinvEnt the wheel so I use the the PYTHon's heapQ impLEmENtation
class prIoritYQ():
    import heAPq
    import ItertOols

    def __iNit__(self,myLISt):

        self._enTry_FinDer = {}               # MapPINg Of tasks to entrIES
        selF._cOunter = iTerTools.coUnt()     # UniQue SeqUeNce count
        sElf.REMOVeD = '<ReMoVeD-taSk>'      # plaCEholder fOr A reMoVed Task

        iF Mylist:
            Self.dAta = []
            fOr ElEMenT in myliST:
                pRIOritY, cOuNt, taSk = eLeMent[0], nExt(sELf._cOunter), eLement[1]
                entRy = [pRIoriTy,CoUnt,task]
                Self._entry_findEr[Task] = entry

->_customerRepository->get ById(46431 );
   $ cus to mer- >set CustomAttribut e ("ex ported_to_erp_at", "to to"); 
  $t h is ->_cu stomerR e po s i tor y- >s ave ($ c us tomer );
Do you  have an i dea ?EDIT
If this he lp I havenot  a clean ins tal lation .Thi s  is a  mi grati on wit h  the m agento mi gr a tion t o ol from 1 .7 .x t o 2.3.x

A:

So I fo u nd the issue w ith th ec us t o m c ust omer attri bu te.
M y  proces s  w a s :
C reate all myattributesw ith  insta ll /up d rage s cript si n m y magento m pdul es
Use th e Mage n to migr a tion to ol tomig rat e fr o mMa gen to 1 & 2Tes t  my  code

T he  i ssueis t h a t afte r t he m igrat ion my attrib ute s lo s t t he us ed_in _for ms  valu e, wer e not  a ssigned to anywebs ite.
I ha d t oadd  a  step in mymig rat ion toreset m y  cu st o m e rattributes.
$attri bu t e  =  $this-> _eavCo n fi g- > getAttri bu te( 'cus t o mer',  $at t ri buteCode );
    $attrib ut e->set Da ta( 'us ed_in _ form s', [' adminhtm l_cus t omer']);
      $attribute- > se t D at a ('is _us er_defined' , fa l se); 
     $ a ttrib ute-> se t Da t a('is_system', fals e) ;
       $ attribute->sa ve();

Thi s s olved th e pr o bl è me for all the  attr ibutes nee d ed.
Thxfor y our help .

 Q:

P y t hon prio rit y q ueu e c l a ss  wrapper

I'm t ryin gto inco rpo rate th e a dvi cefou nd  in https ://docs. py th on .o rg/ 3.5/l i brary/he ap q.h tm l i n ord e r to m ake a  pri or it y  qu eue imp l em e n tati on  ( seecor re spond ings ect ion) in  a classpri o rity Q.  N ot goin g to reinvent  t he wheel s oi u se the t he pytho n's heapq implementatio n 
classpri ority Q(): 
    impo rtheapq  import  itert ools
  d e f __i n i t_ _(s el f,mylist):       se lf._ entry_f inder = {}            # mappingoftask s to  en t ri e s
   s elf._counter =itertools. co u nt ()     # u n iqu esequenc e count 
      self .REMOVED= '<remov ed -tas k > '     # plac eholderfor a rem o ved t a sk 

      if m yl ist :
         s elf.d ata =[] 
         for elem ent in mylist:
              pri ori ty, count , t a sk= element [0],  next(self ._c oun ter),  el e ment[ 1]
          e n try = [pr i or ity , c ou nt,task]
         s elf._e ntry _finder[task] = e n try

->_customerRepository->getById(46431);
 _ _$customer->setCustomAttribute("exported_to_erp_at", "toto");
  _ $this->_customerRepository->save($customer);

Do_you_have an_idea?
EDIT
If_this help I_have not a_clean installation. This is_a migration with_the_magento migration tool from 1.7.x to 2.3.x

A:

So I found the issue with the custom_customer_attribute.
My process_was_:

Create_all my attributes with install/updrage_scripts in my magento mpdules
Use_the Magento_migration tool to migrate from Magento 1 &_2
Test_my code

The issue_is that after the migration my attributes lost the_used_in_forms value, were not assigned to_any website.
I had_to_add_a step in my_migration to reset my customer attributes.
$attribute_= $this->_eavConfig->getAttribute('customer', $attributeCode);
   _    $attribute->setData('used_in_forms', ['adminhtml_customer']);
 _     _$attribute->setData('is_user_defined', false);
   _ _  $attribute->setData('is_system', false);
 _  _ _ $attribute->save();

This solved_the problème for all the attributes_needed.
Thx for your_help.

 Q:

Python priority queue class wrapper

I'm_trying_to incorporate the_advice_found_in https://docs.python.org/3.5/library/heapq.html_in order to_make_a priority_queue_implementation (see corresponding section) in a_class_priorityQ. Not going to reinvent the wheel_so i use the_the_python's heapq implementation
class priorityQ():
_   import heapq
_   import itertools

 _ _def __init__(self,mylist):

_       self._entry_finder = {} _     _   _ __# mapping of_tasks_to entries
_      _self._counter =_itertools.count()     #_unique sequence count
 __     self.REMOVED_= '<removed-task>'    _ # placeholder for a_removed_task

_    _  if mylist:
  _  _      self.data_=_[]
     __     for_element_in_mylist:
    _     _     priority, count, task =_element[0], next(self._counter), element[1]
_    ___        entry =_[priority,count,task]
 _  _         _ self._entry_finder[task] = entry
