Error description: (DOS Error 267) DBFCDX/1006 Create error

Error description: (DOS Error 267) DBFCDX/1006 Create error

Postby Otto » Tue Jan 21, 2020 9:15 am

Hello,
Can someone help me please.
I try with:

index on field-> ORDER DAY TmpAUFT6 TO TEMPUMS TEMPORARY

to create a temporary index.
Where is it created?

Error description: (DOS Error 267) DBFCDX/1006 Create error: TEMPUMS.cdx

Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6330
Joined: Fri Oct 07, 2005 7:07 pm

Re: Error description: (DOS Error 267) DBFCDX/1006 Create error

Postby Enrico Maria Giordano » Tue Jan 21, 2020 9:59 am

Otto wrote:Hello,
Can someone help me please.
I try with:

index on field-> ORDER DAY TmpAUFT6 TO TEMPUMS TEMPORARY


This is a wrong syntax. You can't use spaces inside a field name.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Error description: (DOS Error 267) DBFCDX/1006 Create error

Postby Otto » Tue Jan 21, 2020 10:17 am

Hello Enrico,
I am sorry, but autocorrection changed the expression.
I have:
index on field->AUFTRAGNUM TAG TmpAUFT6 TO TEMP5 TEMPORARY

( Auftragnum was translated to order and TAG to day )

Can you please help me. Where do I find the directory.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6330
Joined: Fri Oct 07, 2005 7:07 pm

Re: Error description: (DOS Error 267) DBFCDX/1006 Create error

Postby Enrico Maria Giordano » Tue Jan 21, 2020 10:41 am

I can't reproduce the problem. Can I have your DBF and all that is required to reproduce the problem here, please?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Error description: (DOS Error 267) DBFCDX/1006 Create error

Postby Otto » Tue Jan 21, 2020 10:58 am

Hello Enrico,
I have the problem in a vm. Everything works fine for me local. In this VM I get the error with every database.
I asked the question before, then I was able to solve the problem, but I don't remember where the temp folder is.

viewtopic.php?f=3&t=37533&p=224442&hilit=temporary+index#p224442
Thank you for your help.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6330
Joined: Fri Oct 07, 2005 7:07 pm

Re: Error description: (DOS Error 267) DBFCDX/1006 Create error

Postby Otto » Tue Jan 21, 2020 1:43 pm

Hello Enrico,
now I inserted
? GETENV("TMP")
and I see that the environment is:

WINDOWS 10
c:\Users\Otto Buero\AppData\Local\Temp\

SERVER 2019
c:\Users\Otto Buero\AppData\Local\Temp\16

If I create 16 my self all is working.
But what is the correct way.
Best regards
Otto


Code: Select all  Expand view
#include 'fivewin.ch'

//----------------------------------------------------------------------------//
REQUEST DBFCDX
REQUEST DBFFPT
//----------------------------------------------------------------------------//

Function main()
//----------------------------------------------------------------------------//
       
        ? GETENV("TMP")
       
        use "umsatz.dbf" new
        index on field->bezeichnun  TAG TmpB5Nr TO TEMP5 TEMPORARY
       
        xbrowse("umsatz")
       
        msginfo( procname() + "   " + str(procline()) + "   " + str( 1 ) )

return nil
//----------------------------------------------------------------------------//        
INIT PROCEDURE PrgInit

   SET CENTURY ON
   SET EPOCH TO YEAR(DATE())-98

   SET DELETED ON
   SET EXCLUSIVE OFF

   REQUEST HB_Lang_DE
 

   HB_LangSelect("DE")
 

   SET DATE TO GERMAN

   SetHandleCount(205)
   rddsetdefault( "DBFCDX" )
   SetGetColorFocus()

   EXTERN DESCEND

   SetBalloon( .F. )
   SetKinetic( .T. )

   fwNumFormat( 'E', .t. )

RETURN










 
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6330
Joined: Fri Oct 07, 2005 7:07 pm


Re: Error description: (DOS Error 267) DBFCDX/1006 Create error

Postby karinha » Tue Jan 21, 2020 2:23 pm

Mister otto, test please.

Code: Select all  Expand view

#include 'Fivewin.ch'
#Include "Directry.ch"
#Include "Ord.Ch"

ANNOUNCE RDDSYS
REQUEST DBFCDX
REQUEST DBFFPT

EXTERNAL DESCEND

FUNCTION Main()

//----------------------------------------------------------------------------//
       
   ? GETENV( "TMP" )
       
   // USE "umsatz.dbf" new

   // INDEX ON field->bezeichnun  TAG TmpB5Nr TO TEMP5 TEMPORARY
       
   // xbrowse( "umsatz" )

   USE CUSTOMER NEW

   INDEX ON FIELD->FIRST TAG FIRST TO TEMP5 TEMPORARY  // MEMORY
   GO TOP
       
   xbrowse( "CUSTOMER" )
       
   msginfo( procname() + "   " + str( procline() ) + "   " + str( 1 ) )

RETURN nil

//----------------------------------------------------------------------------//
INIT PROCEDURE PrgInit

   SET DATE TO GERMAN
   SET CENTURY ON

   // SET EPOCH TO YEAR( DATE() ) - 98  //??
   SET EPOCH TO YEAR( DATE() ) - 50  // OR 30

   SET DELETED ON
   SET EXCLUSIVE OFF
   SET MULTIPLE OFF

   REQUEST HB_Lang_DE

   HB_LangSelect( "DE" )

   // SetHandleCount( 205 )  // 16 Bits ??

   rddsetdefault( "DBFCDX" )

   SetGetColorFocus()

   SetBalloon( .F. )
   SetKinetic( .T. )

   fwNumFormat( 'E', .T. )

RETURN NIL
 


Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7811
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Error description: (DOS Error 267) DBFCDX/1006 Create error

Postby Otto » Tue Jan 21, 2020 3:04 pm

Hello João,
I tried the changes but with no success.

As for the moment I implemented this solution which seems to work:


LOCAL CtMP := GETENV( "TMP" )
//----------------------------------------------------------------------------//
lMKDir(CtMP)
Thank you for your help and best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6330
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 65 guests